home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-12-13 | 1.8 KB | 60 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="5"
- "COUNT"="1"
- "UIPATH"="Appearance\Taskbar\"
- "NAME"="QuickLaunch Bar Show Desktop link"
- "VERSION"="1.21"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Create "Show Desktop" link"
- "DESCRIPTION 1"="If you have deleted the "Show Desktop" link in your Quick Launch bar, click the first button to create it again."
- "DESCRIPTION 2"="The Quick Launch bar is installed with the ActiveDesktop feature of Internet Explorer 4.X and above."
- "DESCRIPTION 3"="NOTE: You can also use WINDOWS KEY+D as a keyboard shortcut to show the desktop. If this suits you better, you don't need this link."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to Umesh Reghuram (umesh@home.com) for the spelling-fix."
-
-
- sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData"
- sPath1="\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
-
- Sub Plugin_Initialize
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then
- 'OK!
- else
- Disable
- end if
-
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- Select Case ElementIndex
- Case 1
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then
- s=s & sPath1
-
- 'Let's write the file!!!
- Call IniWriteValue(s,"Shell","Command","2")
- Call IniWriteValue(s,"Shell","IconFile","explorer.exe,3")
- Call IniWriteValue(s,"Taskbar","Command","ToggleDesktop")
- 'I'm sometimes simply TOOO kidding...
- Call IniWriteValue(s,"Xteq","Comment","This file created with Xteq Systems's X-Setup")
-
- else
- Call MsgError("Unable to read AppData value from registry - maybe ActiveDesktop is not installed")
- end if
-
-
- Case 2
- End Select
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-